[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 getdta()                Get Disk Transfer Address

 #include   <dos.h>

 char       far *getdta(void);

 getdta() returns a pointer to the current disk transfer address (DTA).  The
 address pointed to in compact, large, and huge memory models is the correct
 hardware address and may be outside the program area. In small and medium
 memory models, the segment is assumed to be the current data segment.

       Returns:     A pointer to the current disk transfer address, as
                    described above.

         Notes:     Beware that in small and medium memory models,
                    assembly routines may set the disk transfer address
                    to any hardware address.

   Portability:     MS-DOS only.

   -------------------------------- Example ---------------------------------

    The following statement gets the current disk transfer address.

           #include <dos.h>     /* for getdta */

           main()
           {
               char far *dta;

               dta = getdta();
             }

See Also: setdta()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson